<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/view/jsp/admin/includes/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>应用</title>
		<%@ include file="/WEB-INF/view/jsp/admin/includes/meta.jsp"%>
		<link type="text/css" rel="stylesheet" href="${ctx}/admin/css/admin.css" />
	</head>

	<body>
		<div class="container">
			<h3>
				编辑应用
			</h3>
			<form id="inputForm" name="inputForm"
				action="${ctx}/admin/application!save.do" method="post">
				<input type="hidden" name="id" value="${application.id}" />
				<table class="inputView">
					<tr>
						<td class="label" width="15%" align="right" valign="middle">
							应用类型：
						</td>
						<td class="value" valign="middle">
							<input type="text" id="type" name="type" style="width: 180px;"
								value="${application.type}" />
						</td>
						<td>
							<div id="typeTip" style="width: 250px"></div>
						</td>
					</tr>
					<tr>
						<td class="label" width="15%" align="right" valign="middle">
							应用名称：
						</td>
						<td class="value" valign="middle">
							<input type="text" id="name" name="name" style="width: 180px;"
								value="${application.name}" />
						</td>
						<td>
							<div id="nameTip" style="width: 250px"></div>
						</td>
					</tr>
					<c:if test="${not empty application.authToken}">
						<tr>
							<td class="label" width="15%" align="right" valign="middle">
								通信密钥：
							</td>
							<td class="value" valign="middle">
								<input type="text" id="authToken" name="authToken"
									style="width: 180px;" readonly="readonly"
									value="${application.authToken}" />
							</td>
							<td>
								<div id="authTokenTip" style="width: 250px"></div>
							</td>
						</tr>
					</c:if>
					<tr>
						<td class="label" width="15%" align="right" valign="middle">
							应用Url：
						</td>
						<td class="value" valign="middle">
							<input type="text" id="url" name="url" style="width: 180px;"
								value="${application.url}" />
						</td>
						<td>
							<div id="urlTip" style="width: 250px"></div>
						</td>
					</tr>
					<tr>
						<td class="label" width="15%" align="right" valign="middle">
							应用IP：
						</td>
						<td class="value" valign="middle">
							<input type="text" id="ip" name="ip" style="width: 180px;"
								value="${application.ip}" />
						</td>
						<td>
							<div id="ipTip" style="width: 250px"></div>
						</td>
					</tr>
					<tr>
						<td class="label" width="15%" align="right" valign="middle">
						</td>
						<td class="value" valign="middle">
							<input type="submit" id="submitConfig" name="submitConfig"
								value="确认" />
							&nbsp;
							<input type="button" value="取消" onclick="history.back()" />
						</td>
					</tr>
				</table>
			</form>
		</div>
	</body>
</html>
